package stu.kurs.domain;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.JoinColumn;
import javax.persistence.OneToOne;
import javax.persistence.Table;



@Entity
@Table(name="userbalans")
public class UserBalans extends DomainObject {
	
	private static final long serialVersionUID = -3370084137417304291L;

	@Column(name = "count", nullable = true)
	private Double count;
	
	@OneToOne
	@JoinColumn(name = "user_id")
	private User user;
	
	public UserBalans() {
		super();
	}
	
	public UserBalans(Double count) {
		super();
		this.count = count;
	}

	public Double getCount() {
		return count;
	}

	public void setCount(Double count) {
		this.count = count;
	}
    	
	public User getUser() {
		return user;
	}

	public void setUser(User user) {
		this.user = user;
	}
  
}
